/**
 * Copyright &copy; 2012-2016 <a href="https://git.oschina.net/zdw2016/webbase5">Webbase</a> All rights reserved.
 */
package com.foreveross.webbase.projectdemo.entity;

import org.hibernate.validator.constraints.Length;

import com.foreveross.webbase.common.persistence.DataEntity;

/**
 * 服务器类型管理Entity
 * @author yangwanli
 * @version 2017-03-15
 */
public class Servertype extends DataEntity<Servertype> {
	
	private static final long serialVersionUID = 1L;
	private String type;		// 服务器类型
	private String remark;		// 备注
	
	public Servertype() {
		super();
	}

	public Servertype(String id){
		super(id);
	}

	@Length(min=0, max=32, message="服务器类型长度必须介于 0 和 32 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=255, message="备注长度必须介于 0 和 255 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}